<template>
  <svg class="icon" aria-hidden="true" title="xfdsfsdfs" @click="$emit('click')">
    <use :xlink:href="iconType"/>
  </svg>
</template>

<script lang="ts">
export default {
  props: {
    type: {
      type: String,
      default: ''
    }
  },
  computed: {
    iconType: function() {
      return `#${this.type}`
    }
  }
}

</script>

<style lang="scss" scoped>
  .icon {
    width: 14px;
    height: 14px;
    vertical-align: -0.15em;
    margin-right: 2px;
    fill: currentColor;
    overflow: hidden;
  }
</style>
